package com.plant.serviceImpl;

import com.plant.dao.BaseDao;
import com.plant.entity.UgcUser;
import com.plant.service.PlantService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author 植物先生-李琦
 */
@Service                  //依赖注册 必须写注册 下面在写resource资源
@Transactional
public class PlantServiceImpl implements PlantService{

    @Resource(name = "baseDaoImpl")      //注解扫描basedao接口方法
    private BaseDao baseDao;
    
    @SuppressWarnings("unchecked")
	public List<UgcUser> listUserInfo() {
        return baseDao.loadAll(UgcUser.class);
    }
}
